﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Profile;

namespace TestSystem.BLL.Profile
{
    public class CustomProfile : ProfileBase
    {
        public Personal Personal
        {
            get { return (Profile.Personal) GetPropertyValue("Personal"); }
        }

        public Contacts Contacts
        {
            get { return (Profile.Contacts) GetPropertyValue("Contacts"); }
        }

        public Forum Forum
        {
            get { return (Profile.Forum) GetPropertyValue("Forum"); }
        }

        public static CustomProfile GetProfile()
        {
            return (CustomProfile) HttpContext.Current.Profile;
        }
 
        public static CustomProfile GetProfile(string userName)
        {
           return (CustomProfile) Create(userName);
        }
    }
}
